/*
 * @Author: guandeshen 295570679@qq.com
 * @Date: 2024-05-19 13:24:16
 * @LastEditors: guandeshen 295570679@qq.com
 * @LastEditTime: 2024-09-03 09:28:09
 * @FilePath: /task-admin/src/api/dashboard/model.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
/**
 * 任务列表
 */
interface WBS {
  id: number | string;
  project_id?: number | string;
  wbs_name?: string;
}
/**
 * 任务列表对象类型
 */
export interface TaskList {
  id: number | string;
  wbs_id?: number | string;
  task_name?: string;
  start_d?: string;
  end_d?: string;
  status?: number;
  wbs?: WBS;
  project_name: string;
}
/**
 * 控制面板数字对象类型
 */
export interface Nums {
  total_num: number;
  ing_num: number;
  finish_num: number;
}

/**
 * 控制面板查询对象类型
 */
export interface DashboardQuery extends PageQuery {
  project_id?: number | string;
  site_id?: number | string;
}

/**
 * 控制面板查询对象类型
 */
export interface DashboardQuery extends PageQuery {
  project_id?: number | string;
  site_id?: number | string;
}

/**
 * 项目查询对象类型
 */
export interface ProjectQuery extends PageQuery {
  keyword?: string;
}

/**
 * 项目列表对象类型
 */
export interface ProjectList {
  id: number | string;
  p_name: string;
}

/**
 * 工地查询对象类型
 */
export interface SiteQuery extends PageQuery {
  keyword?: string;
  project_id?: number | string;
}

/**
 * 工地列表对象类型
 */
export interface SiteList {
  id: number | string;
  s_name: string;
}
